package fr.greta.centre.action;

import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

import fr.greta.centre.metier.Candidat;


public class Services extends HttpServlet {
	private static final long serialVersionUID = 1L;

	protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		HttpSession session = request.getSession(true); 
		Candidat cand = (Candidat) session.getAttribute("candidat");
		if(cand!=null){request.getRequestDispatcher("services.jsp").forward(request,
				response);
		}
		else
		{ request.getRequestDispatcher("index.jsp").forward(request, response);}
	}
	
	protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		
		

		}

	}

